/*
 * Copyright 2020-2025 the original author or authors.
 * You cannot use this file unless authorized by the author.
 */
package org.ipig.model.proc;

import com.alibaba.fastjson.annotation.JSONField;
import org.ipig.constants.DataCnst;
import org.ipig.model.ConnectorConf;
import org.ipig.model.RequesterConf;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 通过主动获取的方式获得消息的消息生成者Conf
 *
 * @author <a href="mailto:comchnts@163.com">chinats</a>
 * @version $$Id: FlowRequesterConf.java 3 2020-01-21 09:36:33Z ts <comchnts@163.com> $$
 * @since 1.0
 */
@Data
@ToString
public class FlowRequesterConf extends RequesterConf implements Serializable {
    //唯一编码
    private String code;
    //请求器类型
    private String type;
    //标题说明
    private String title;
    //请求消息生产者类
    private String requesterClass;
    //连接器Conf
    @JSONField(serialize=false,deserialize = false)
    private ConnectorConf connectorConf;
    private String connectorCode;
    /**
     * 请求处理器Conf，支持多个处理器conf
     **/
    private Map<String, FlowProcessorConf> processorMap = new HashMap<String, FlowProcessorConf>();
    //调试标识 默认关闭
    private Boolean debugEnable = Boolean.valueOf(false);
    //逻辑删除标识
    private String deletedFlag = DataCnst.FLAG_NORMAL;
    //createTime
    private String createTime;
    //creatorId
    private String creatorId;
    //modifyTime
    private String modifyTime;
    //modifierId
    private String modifierId;
    // 其它属性
    private Map<String, Object> props = new HashMap<String, Object>();
}
